<template>
    <SysDialog draggable :title="dialog.title" :visible="dialog.visible" :width="dialog.width" :height="dialog.height"
    @onClose="onClose" @onConfirm="confirm">
    <template v-slot:content>
    <!-- 内容组件 -->
    </template>
  </SysDialog>
</template>

<script setup lang='ts'>
import { reactive, toRefs, onBeforeMount, onMounted } from 'vue'
import SysDialog from '@/components/SysDialog.vue';
import useDialog from '@/hooks/useDialog';
import useInstance from '@/hooks/useInstance';
// 使用
const { dialog, onClose, onShow } = useDialog()
const { global, proxy } = useInstance();
// 保存
const confirm=()=>{}
const show = (type: string, row?:any) => {
  console.log('show');
  dialog.width = 650
  dialog.height = 150
  onShow()
  // global.$resetForm(addTemForm.value,dialogModel)
  // if(type === EditType.EDIT){
  //   global.$objCopy(row,dialogModel)
  // }
}
defineExpose({
  show
})
</script>
<style scoped lang='scss'>
</style>